//
//  CategoryService.swift
//  NewsApp
//
//  Created by 吴祥民 on 2024/1/1.
//

import Foundation
import Alamofire

struct CategoryService {
    
    func list<T: Codable>(completion: @escaping ListCompletion<T>) {
        AF.request("http://127.0.0.1:4523/m1/3841690-0-default/api/category/list").json(completion: completion)
    }
    
}

